]> dgit.raspbian.org Git - gnome-shell.git/commit
endSessionDialog: Factor out _updateDescription from _updateContent
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 5 Jun 2012 09:51:36 +0000 (11:51 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 5 Jun 2012 13:57:18 +0000 (15:57 +0200)
commit7b048fc092771a3f5a4a121d853975cbad9cf177
tree3b8b929e8fe5639bbdfd1bf7431fe0683ebc5ef9
parent4ba4a501fddff3db1ab15bdc7f0b2866b3f9b0bc
endSessionDialog: Factor out _updateDescription from _updateContent

_startTimer adds a tweener to implement the description countdown, which
updates the entire content on each iteration, including the icon. This
causes a significant impact on performance, especially when accessibility
is enabled, as it causes a flood of AtkObject:state-change:showing events.
As the countdown only affects the description, factor out _updateDescription
and use it in _startTimer, and only do a full update of all contents when
necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=674210
js/ui/endSessionDialog.js